﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PSI.Models.TMS {
    /// <summary>
    /// 进口委托-箱，费用
    /// </summary>
    public class FeeCntInConsignation {
        [JsonProperty("id")]
        public string Id { get; set; }

        /// <summary>
        /// 船名航次
        /// </summary>
        [JsonProperty("vsl")]
        public string Vsl { get; set; }

        /// <summary>
        /// 委托方
        /// </summary>
        [JsonProperty("clients")]
        public string Clients { get; set; }

        /// <summary>
        /// 箱、封号
        /// </summary>
        [JsonProperty("cntNumber")]
        public string CntNumber { get; set; }

        /// <summary>
        /// 箱型
        /// </summary>
        [JsonProperty("cntType")]
        public string CntType { get; set; }

        /// <summary>
        /// 箱属
        /// </summary>
        [JsonProperty("cntOwner")]
        public string CntOwner { get; set; }

        /// <summary>
        /// 门点
        /// </summary>
        [JsonProperty("address")]
        public string Address { get; set; }

        /// <summary>
        /// 货名
        /// </summary>
        [JsonProperty("goods")]
        public string Goods { get; set; }

        /// <summary>
        /// 货主
        /// </summary>
        [JsonProperty("goodsOwner")]
        public string GoodsOwner { get; set; }

        /// <summary>
        /// 货主电话
        /// </summary>
        [JsonProperty("goodsOwnerTel")]
        public string GoodsOwnerTel { get; set; }

        /// <summary>
        /// 卸货联系人
        /// </summary>
        [JsonProperty("unloadMan")]
        public string UnloadMan { get; set; }

        /// <summary>
        /// 卸货联系人电话
        /// </summary>
        [JsonProperty("unloadManTel")]
        public string UnloadManTel { get; set; }

        /// <summary>
        /// 运单号
        /// </summary>
        [JsonProperty("blNumber")]
        public string BlNumber { get; set; }
    }

    public class FeeItem {
        [JsonProperty("id")]
        public string Id { get; set; }

        /// <summary>
        /// 应收/应付
        /// </summary>
        [JsonProperty("dir")]
        public string Dir { get; set; }

        /// <summary>
        /// 支付方
        /// </summary>
        [JsonProperty("clients")]
        public string Clients { get; set; }

        /// <summary>
        /// 费目
        /// </summary>
        [JsonProperty("feeName")]
        public string FeeName { get; set; }

        /// <summary>
        /// 费用金额
        /// </summary>
        [JsonProperty("feeMoney")]
        public int FeeMoney { get; set; }

        /// <summary>
        /// 录入时间
        /// </summary>
        [JsonProperty("createDT")]
        public string CreateDT { get; set; }
    }
}